import request from '@/utils/request'

// 查询章节测试外键列表
export function listExamination(query) {
  return request({
    url: '/zzxx/examination/list',
    method: 'get',
    params: query
  })
}

// 查询章节测试外键详细
export function getExamination(chapterId) {
  return request({
    url: '/zzxx/examination/' + chapterId,
    method: 'get'
  })
}

// 新增章节测试外键
export function addExamination(data) {
  return request({
    url: '/zzxx/examination',
    method: 'post',
    data: data
  })
}

// 修改章节测试外键
export function updateExamination(data) {
  return request({
    url: '/zzxx/examination',
    method: 'put',
    data: data
  })
}

// 删除章节测试外键
export function delExamination(chapterId) {
  return request({
    url: '/zzxx/examination/' + chapterId,
    method: 'delete'
  })
}
